package com.competition.web.admin.service.impl;

import org.springframework.stereotype.Service;

import com.competition.web.entity.UmsMemberLevel;
import com.competition.web.entity.UmsMemberLevelExample;
import com.basic.service.impl.BaseServiceImpl;
import com.competition.web.admin.mapper.UmsMemberLevelMapper;
import com.competition.web.admin.service.UmsMemberLevelService;

import java.util.List;

/**
 * 会员等级管理Service实现类
 */
@Service
public class UmsMemberLevelServiceImpl extends BaseServiceImpl<UmsMemberLevel> implements UmsMemberLevelService{

	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public UmsMemberLevelServiceImpl(UmsMemberLevelMapper mapper) {
		super(mapper);
	}
    @Override
    public List<UmsMemberLevel> list(Integer defaultStatus) {
        UmsMemberLevelExample example = new UmsMemberLevelExample();
        example.createCriteria().andDefaultStatusEqualTo(defaultStatus);
        return ((UmsMemberLevelMapper) this.getBaseMapper()).selectByExample(example);
    }
}
